package com.qianda.qdminiapp.domain.model.agent;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cw
 * @since 2019-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("AGENT")
public class Agent extends Model<Agent> {

    private static final long serialVersionUID = 1L;

    /**
     * 代理商id
     */
    @TableId(value = "AGENT_ID", type = IdType.AUTO)
    private Integer agentId;

    /**
     * 代理商姓名
     */
    @TableField("AGENT_NAME")
    private String agentName;

    /**
     * 代理商电话
     */
    @TableField("AGENT_PHONE")
    private String agentPhone;

    /**
     * 代理商等级（关联字典表）
     */
    @TableField("AGENT_LEVEL")
    private Integer agentLevel;

    /**
     * 代理商地区id
     */
    @TableField("AGENT_LOCATION_ID")
    private Integer agentLocationId;

    /**
     * 代理商信息创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    @TableField("AGENT_USER_ID")
    private String agentUserId;

    /**
     * 代理详细地区
     */
    @TableField("AGENT_DETAIL")
    private String agentDetail;


    @Override
    protected Serializable pkVal() {
        return this.agentId;
    }

}
